package common.jisc.exception;

/**
 * User: Denis Fahritdinov
 * Date: 10/14/12
 * Time: 4:26 PM
 *
 * Throws to stop command handle process
 */
public class StopHandlingException extends RuntimeException {

    private String command;

    public StopHandlingException(String command) {
        this.command = command;
    }

    public StopHandlingException(String message, String command) {
        super(message);
        this.command = command;
    }

    public StopHandlingException(String message, Throwable cause, String command) {
        super(message, cause);
        this.command = command;
    }

    public StopHandlingException(Throwable cause, String command) {
        super(cause);
        this.command = command;
    }

    public String getCommand() {
        return command;
    }
}
